<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('manage/vminfoList')}">虚拟机列表</a></li>
			<!-- <li><a href="{:url('fbfans/add')}">添加粉丝页管理列表</a></li> -->
		</ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('manage/vminfoList')}">
            查询ip:
            <input type="text" class="form-control" name="vim_ip" style="width: 180px;" value="{:input('request.vim_ip/s','')}" placeholder="ip">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('manage/vminfoList')}">清空</a>
        </form>

		<form class="well form-inline margin-top-20" method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('manage/vminfoExcelAdd')}">
			<div class="form-group">
				 <input id="excel-3" type="hidden" name="excel_url" >
				 <input  id="excel-3-name" type="text" name="excel_name" placeholder="导入表格名称" class="form-control"  style="widtd: 120px;">
				 <a style="padding: 7px 8px;" href="javascript:uploadOne('Excel上传','#excel-3','file');" class="btn btn-sm btn-primary btn-danger">选择上传文件</a>
			</div>
			<div class="form-group">
			  <div class="col-sm-offset-2 col-sm-10">
				 <button type="submit" class="btn btn-primary js-ajax-submit">导入</button>
			  </div>
			</div>
		</form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>id</th>
					<th>ip</th>
					<th>管理员</th>
					<th>账号</th>
					<th>密码</th>
					<th>所属账号</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="vminfos" item="vvo">
				<tr>
					<td>{$vvo.id}</td>
					<td>{$vvo.vim_ip}</td>
					<td>{$vvo.admin }</td>
					<td>{$vvo.vm_account }</td>
					<td>{$vvo.vm_pass}</td>
					<td>
						<foreach name="vvo.subordinate" item="svo">
							<p style="background: #98F5FF">{$svo.accountnumber}</p>
								<foreach name="svo.fanpages" item="fvo">
									<p style="background: #F0FFF0">{$fvo.url}    |  粉丝页状态 :<?php if($fvo['status'] == 1){echo '<span style="color:green"> 正常 </span>';}else{echo '<span style="color:red"> 挂了 </span>';}?></p>
								</foreach>
						</foreach>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div>{$plistpage}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
